package ca.cbc.msb.mq;

import javax.jms.JMSException;
import javax.naming.NamingException;

import ca.cbc.msb.entity.MSBMessage;

/**
 * post processing messages from queue.
 * 
 * @author William Wei
 */
public interface MessageHandler {

	/**
	 * 
	 * @param message contains enough information for subsequent processing: media, release.
	 * @param messageUtil create and maintain message connection, queue, provides facilities for sending/receiving messages.
	 * @throws NamingException
	 * @throws JMSException
	 */
	public void handle(MSBMessage message, MessageUtil messageUtil) throws NamingException, JMSException;


}
